package com.ddm.mapper;

import com.entity.BookDetail;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 订单详情Mapper接口
 */
@Mapper
public interface BookDetailMapper {
    // 新增订单详情
    int insert(BookDetail bookDetail);

    // 根据订单详情ID删除
    int deleteByBookDetailId(Integer bookDetailId);

    // 根据订单详情ID查询
    BookDetail selectByBookDetailId(Integer bookDetailId);

    // 分页查询订单详情列表
    List<BookDetail> selectBookDetailList(BookDetail bookDetail);
}